<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <!-- confirm
this.$confirm("提示内容",标题,{
    confirmButtonText:确定按钮文本,
    cancelButtonText:取消按钮文本,
    type:"info/success/error/warning"
}).then(()=>{
    //点击确定后的执行
}).catch(()=>{
    //点击 取消后的执行
})

-->
      <el-button @click="exit">退出</el-button>
    </div>
    <script src="./vue.js"></script>
    <link rel="stylesheet" href="./ele.css" />
    <script src="./index.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {},
        methods: {
          exit() {
            this.$confirm("您确定退出 吗?", "提示", {
              confirmButtonText: "确定退出",
              cancelButtonText: "取消退出",
              type: "warning",
            })
              .then(() => {
                window.console.log("点击 了确定");
              })
              .catch(() => {
                window.console.log("点击了取消");
              });
          },
        },
      });
    </script>
  </body>
</html>
